package com.business.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author 张子艺
 * @since 2019-01-08
 */
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 角色名
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 角色编码
     */
	@TableField("role_value")
	private String roleValue;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 区域id
     */
	private Long areaid;
    /**
     * 指定谁可以添加房间
     */
	private String appoint;

	@TableField(exist = false)
    private List<MenuResourse> menuResourses;

	public List<MenuResourse> getMenuResourses() {
		return menuResourses;
	}

	public void setMenuResourses(List<MenuResourse> menuResourses) {
		this.menuResourses = menuResourses;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleValue() {
		return roleValue;
	}

	public void setRoleValue(String roleValue) {
		this.roleValue = roleValue;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}

	public String getAppoint() {
		return appoint;
	}

	public void setAppoint(String appoint) {
		this.appoint = appoint;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Role{" +
				"id=" + id +
				", roleName='" + roleName + '\'' +
				", roleValue='" + roleValue + '\'' +
				", createTime=" + createTime +
				", areaid=" + areaid +
				", appoint='" + appoint + '\'' +
				", menuResourses=" + menuResourses +
				'}';
	}
}
